package com.whatisjee.ssf.domain.dao.impl;

import java.util.List;

import com.whatisjee.ssf.domain.dao.RoleDao;
import com.whatisjee.ssf.domain.entity.Role;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import javax.persistence.Query;

@Named("roleDao")
@ApplicationScoped
public class RoleDaoImpl extends AbstractDaoImpl implements RoleDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<Role> select() {
                Query query = em.createQuery("SELECT r FROM Role r");
		return query.getResultList();
	}

}
